home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 8 / IOPROG_8.ISO / soft / sdkplnet / mac / plgsk401.sit / PluginSDK 4.01a / Examples / CharFlipper / Source / CMacFlipView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-09  |  599 b   |  31 lines

  1. #pragma once
  2.  
  3. #ifndef _NPAPI_H_
  4. #include "npapi.h"
  5. #endif
  6.  
  7. #include "CFlipView.h"
  8. #include "CCharFlipper.h"
  9.  
  10. class CNetscapePlugin;
  11.  
  12. class CMacFlipView : public CFlipView {
  13.     public:
  14.                             CMacFlipView( CCharFlipper* inController );
  15.         virtual                ~CMacFlipView();
  16.  
  17.         NPWindow*            GetWindow();
  18.         virtual NPError        SetWindow( NPWindow* inWindow );
  19.  
  20.         virtual void        Paint();
  21.         
  22.     protected:
  23.         Boolean             StartDraw(NPWindow * inWindow);
  24.         void                 EndDraw(NPWindow * inWindow);
  25.         void                 DoDraw( char inChar, NPWindow* inWindow );
  26.  
  27.         NPWindow*            mWindow;
  28.         CGrafPort            mSavePort;
  29.         CGrafPtr            mOldPort;
  30. };
  31.